package cn.changeforyou.web.dao.mybatis.ext.metaInfo.condition;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * select * from user where create_time between #{before} and #{after} and #{before} > '2017-01-02'
 * 表达between, Between可以任意传递一个between表达式
 * between 和 @condition 不同之处在于@between
 * 1. between语句本来就是跨字段的
 * 2. 规定解析中@
 * @author zhyu
 * @version 1.0
 * @date 2022/2/17 21:33
 */
@Target(TYPE)
@Retention(RUNTIME)
public @interface Betweens {

    Between[] value();
}
